
public class User {
	public static int NUM = 28;
	private String name = null;
	private int points = 0;
	private int singlePoints = 0;
	private int doublePoints = 0;
	private int bigPoints = 0;
	private int smallPoints = 0;
	private int bigSinglePoints = 0;
	private int bigDoublePoints = 0;
	private int smallSinglePoints = 0;
	private int smallDoublePoints = 0;
	private int[] eachPoints = new int[NUM];
	private int restPoints = 0;
	private int type;//1 for RMB; 0 for Game Point
	private int subNum = 0;
	private int addNum = 0;

	public User(String name,int points,int type){
		this.name = name;
		this.points = points;
		this.restPoints = points;
		this.type = type;
		for(int i = 0; i < NUM; i++){
			eachPoints[i] = 0;
		}
	}
	public void initialValue(){
		singlePoints = 0;
		doublePoints = 0;
		bigPoints = 0;
		smallPoints = 0;
		bigSinglePoints = 0;
		bigDoublePoints = 0;
		smallSinglePoints = 0;
		smallDoublePoints = 0;
	}
	
	public void totalInitialValue(){
		initialValue();
		for(int i = 0; i < NUM; i++){
			eachPoints[i] = 0;
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPoints() {
		return points;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public int getSinglePoints() {
		return singlePoints;
	}

	public void setSinglePoints(int singlePoints) {
		this.singlePoints = singlePoints;
	}

	public int getDoublePoints() {
		return doublePoints;
	}

	public void setDoublePoints(int doublePoints) {
		this.doublePoints = doublePoints;
	}

	public int getBigPoints() {
		return bigPoints;
	}

	public void setBigPoints(int bigPoints) {
		this.bigPoints = bigPoints;
	}

	public int getSmallPoints() {
		return smallPoints;
	}

	public void setSmallPoints(int smallPoints) {
		this.smallPoints = smallPoints;
	}

	public int getBigSinglePoints() {
		return bigSinglePoints;
	}

	public void setBigSinglePoints(int bigSinglePoints) {
		this.bigSinglePoints = bigSinglePoints;
	}

	public int getBigDoublePoints() {
		return bigDoublePoints;
	}

	public void setBigDoublePoints(int bigDoublePoints) {
		this.bigDoublePoints = bigDoublePoints;
	}

	public int getSmallSinglePoints() {
		return smallSinglePoints;
	}

	public void setSmallSinglePoints(int smallSinglePoints) {
		this.smallSinglePoints = smallSinglePoints;
	}

	public int getSmallDoublePoints() {
		return smallDoublePoints;
	}

	public void setSmallDoublePoints(int smallDoublePoints) {
		this.smallDoublePoints = smallDoublePoints;
	}

	public int[] getEachPoints() {
		return eachPoints;
	}

	public void setEachPoints(int[] eachPoints) {
		for(int i = 0; i < User.NUM; i++){
			this.eachPoints[i] = eachPoints[i];
		}
	}

	public int getRestPoints() {
		return restPoints;
	}

	public void setRestPoints(int restPoints) {
		this.restPoints = restPoints;
	}
	
	public void addRestPoints(int d){
		restPoints += d;
	}
	
	public void subRestPoints(int d){
		restPoints -= d;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getSubNum() {
		return subNum;
	}
	public void setSubNum(int subNum) {
		this.subNum = subNum;
	}
	public int getAddNum() {
		return addNum;
	}
	public void setAddNum(int addNum) {
		this.addNum = addNum;
	}
}
